﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Runtime.Serialization;

namespace DTO.Common
{
    [DataContract]
    public class Supplier
    {
        [DataMember] public int Number { get; set; }
        [DataMember] public string Name { get; set; }
        [DataMember] public string Address { get; set; }

        public override string ToString()
        {
            StringBuilder builder = new StringBuilder();
            builder.Append("Supplier:");
            builder.Append(string.Format("\tNumber = {0}",  Number));
            builder.Append(string.Format("\tName = {0}",    Name));
            builder.Append(string.Format("\tAddress = {0}", Address));

            return builder.ToString();
        }
    }
}
